<?xml version="1.0" encoding="utf-8" ?>

<!--

  NIGHTMARE - 0,
	MAGIC_BEANS - 1,
	DREAM - 2
  SPACE - 3

--> 

<level type="3">
  <meta score="0" buttonPrice="10"></meta>
  <bear maxHealth="100" lives="3" startPosition="300" velocity="8.0" damage="11" criticalDamage="20" defaultAmmo="50" />

  <!--  OT_CLOUD = 0,
        OT_SPIKE_NIGHTMARE_LARGE = 1,
        OT_SPIKE_NIGHTMARE_MEDIUM = 2,
        OT_SPIKE_NIGHTMARE_SMALL = 3,
        OT_BEAN_A = 4,
        OT_BEAN_B = 5,
        OT_BEAN_C = 6,
        OT_BEAN_D = 7,
        OT_BEAN_E = 8,
        OT_SPACE_ROCKET = 9,
        OT_SPACE_COMET_A = 10,
        OT_SPACE_COMET_B = 11,
        OT_SPACE_SATELLITE = 12,
        OT_SPACE_UFO = 13,
        OT_SPACE_BALL = 14-->

  <!--
  MAGIC BEAN LEVEL MARGIN
  Since the beanstalks are made in such a way that those can be only placed on the side of the screen, here are the positioning
  coordinates for them:
  
  OT_BEAN_A: 269.5 (Left) 498.5 (Right, with 3.14 rotation)
  OT_BEAN_B: 128.5 (left) 460.5 (Right, with 3.14 rotation)
  OT_BEAN_C: 172 (left) 596 (Right, with 3.14 rotation)
  OT_BEAN_D: 188.5 (left) 579.5 (Right, with 3.14 rotation)
  OT_BEAN_E: 206.5 (left) 561.5 (Right, with 3.14 rotation)
  
  -->
  <obstacles>
    <obstacle type="11" x="680" y="1000" inflictsDamage="true" healthDamage="10" rotation="0" scale="1" />
    <obstacle type="12" x="110" y="1700" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
    <obstacle type="9" x="596" y="2800" inflictsDamage="true" healthDamage="10" rotation="0" scale="1" />
    <obstacle type="11" x="188.5" y="3500" inflictsDamage="true" healthDamage="10" rotation="0" scale="1" />
    <obstacle type="10" x="690" y="4300" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
    <obstacle type="13" x="690" y="5000" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
    <obstacle type="10" x="690" y="5800" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
    <obstacle type="10" x="561.5" y="6600" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
    <obstacle type="12" x="680" y="7400" inflictsDamage="true" healthDamage="10" rotation="0" scale="1" />
    <obstacle type="11" x="110" y="8200" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
    <obstacle type="14" x="120" y="9000" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
    <obstacle type="12" x="680" y="9700" inflictsDamage="true" healthDamage="10" rotation="0" scale="1" />
    <obstacle type="13" x="110" y="10300" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
    <obstacle type="11" x="596" y="11000" inflictsDamage="true" healthDamage="10" rotation="0" scale="1" />
    <obstacle type="10" x="680" y="12000" inflictsDamage="true" healthDamage="10" rotation="0" scale="1" />
    <obstacle type="11" x="110" y="12900" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
    <obstacle type="12" x="100" y="13400" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
  
    <obstacle type="1" x="680" y="14200" inflictsDamage="true" healthDamage="10" rotation="0" scale="1" />
    <obstacle type="2" x="110" y="15100" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
    <obstacle type="3" x="596" y="16000" inflictsDamage="true" healthDamage="10" rotation="0" scale="1" />
    <obstacle type="4" x="188.5" y="16600" inflictsDamage="true" healthDamage="10" rotation="0" scale="1" />
    <obstacle type="5" x="690" y="17220" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
    <obstacle type="6" x="690" y="17900" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
    <obstacle type="7" x="690" y="18500" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
    <obstacle type="8" x="561.5" y="19300" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
    <obstacle type="1" x="680" y="20000" inflictsDamage="true" healthDamage="10" rotation="0" scale="1" />
    <obstacle type="2" x="110" y="20600" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
    <obstacle type="3" x="120" y="21200" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
    <obstacle type="1" x="680" y="22000" inflictsDamage="true" healthDamage="10" rotation="0" scale="1" />
    <obstacle type="3" x="110" y="22600" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
    <obstacle type="3" x="596" y="23100" inflictsDamage="true" healthDamage="10" rotation="0" scale="1" />
    <obstacle type="1" x="680" y="23900" inflictsDamage="true" healthDamage="10" rotation="0" scale="1" />
    <obstacle type="3" x="110" y="24500" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
    <obstacle type="1" x="100" y="25700" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
    <obstacle type="7" x="690" y="26400" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
    <obstacle type="8" x="561.5" y="27100" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
    <obstacle type="1" x="680" y="27900" inflictsDamage="true" healthDamage="10" rotation="0" scale="1" />
    <obstacle type="2" x="110" y="28200" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
    <obstacle type="3" x="120" y="28800" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
    <obstacle type="3" x="596" y="29500" inflictsDamage="true" healthDamage="10" rotation="0" scale="1" />
    <obstacle type="1" x="680" y="30300" inflictsDamage="true" healthDamage="10" rotation="0" scale="1" />
    <obstacle type="3" x="110" y="31000" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
    <obstacle type="1" x="100" y="31700" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
    <obstacle type="8" x="561.5" y="32300" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
    <obstacle type="1" x="680" y="33000" inflictsDamage="true" healthDamage="10" rotation="0" scale="1" />
    <obstacle type="2" x="110" y="33700" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
    <obstacle type="3" x="120" y="34500" inflictsDamage="true" healthDamage="10" rotation="3.14" scale="1" />
  </obstacles>
  
  <!--
  
  MT_NIGHTMARE_A = 0,
	MT_NIGHTMARE_B = 1,
	MT_NIGHTMARE_C = 2,
	MT_MAGICBEAN_A = 3,
	MT_MAGICBEAN_B = 4,
	MT_MAGICBEAN_C = 5,
	MT_CANDYLAND_A = 6,
	MT_CANDYLAND_B = 7,
	MT_CANDYLAND_C = 8,
	MT_CANDYLAND_D = 9,
	MT_CANDYLAND_E = 10
  
  -->
  
  <monsters>
    <monster lifetime="2500" scale=".2" velocityX="1" type="0" x="100" y="2000" maxHealth="70" bonus="100" damage="3" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="2500" scale=".2" velocityX="1" type="0" x="560" y="2000" maxHealth="70" bonus="100" damage="3" criticalDamage="8" defaultAmmo="50" />

    <monster lifetime="2500" scale=".2" velocityX="1" type="8" x="100" y="6000" maxHealth="70" bonus="100" damage="7" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="2500" scale=".2" velocityX="1" type="8" x="560" y="6000" maxHealth="70" bonus="100" damage="7" criticalDamage="8" defaultAmmo="50" />

    <monster lifetime="2500" scale=".2" velocityX="1" type="10" x="100" y="9000" maxHealth="100" bonus="100" damage="8" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="2500" scale=".2" velocityX="1" type="10" x="560" y="9000" maxHealth="100" bonus="100" damage="8" criticalDamage="8" defaultAmmo="50" />

    <monster lifetime="3000" scale=".2" velocityX="1" type="7" x="100" y="17000" maxHealth="100" bonus="100" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="3000" scale=".2" velocityX="1" type="7" x="560" y="17000" maxHealth="100" bonus="100" damage="10" criticalDamage="8" defaultAmmo="50" />

    <monster lifetime="3000" scale=".2" velocityX="1" type="6" x="100" y="21400" maxHealth="100" bonus="100" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="3000" scale=".2" velocityX="1" type="6" x="560" y="21400" maxHealth="100" bonus="100" damage="10" criticalDamage="8" defaultAmmo="50" />

    <monster lifetime="3000" scale=".2" velocityX="1" type="1" x="100" y="26000" maxHealth="100" bonus="100" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="3000" scale=".2" velocityX="1" type="1" x="560" y="26000" maxHealth="100" bonus="100" damage="10" criticalDamage="8" defaultAmmo="50" />
  
    <monster lifetime="3000" scale=".3" velocityX="1" type="2" x="100" y="30000" maxHealth="100" bonus="100" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="3000" scale=".3" velocityX="1" type="2" x="560" y="30000" maxHealth="100" bonus="100" damage="10" criticalDamage="8" defaultAmmo="50" />
  
    <monster lifetime="10000" scale=".5" velocityX="1" type="5" x="200" y="36000" maxHealth="800" bonus="100" damage="20" criticalDamage="8" defaultAmmo="50" />
  </monsters>
  
  <buttons>
    <button x="100" y="600" />
    <button x="160" y="660" />
    <button x="100" y="720" />
    <button x="160" y="780" />
    <button x="100" y="840" />
    <button x="160" y="900" />
    <button x="100" y="960" />
    <button x="160" y="1020" />
    <button x="100" y="1080" />
    <button x="160" y="1140" />
    <button x="100" y="1200" />
    <button x="160" y="1260" />

    <button x="500" y="2000" />
    <button x="560" y="2060" />
    <button x="500" y="2120" />
    <button x="560" y="2180" />
    <button x="500" y="2240" />
    <button x="560" y="2300" />
    <button x="500" y="2360" />
    <button x="560" y="2420" />
    <button x="500" y="2480" />

    <button x="100" y="2800" />
    <button x="160" y="2860" />
    <button x="100" y="2920" />
    <button x="160" y="2980" />
    <button x="100" y="3040" />
    <button x="160" y="3100" />
    <button x="100" y="3160" />
    <button x="160" y="3220" />

    <button x="590" y="4000" />
    <button x="530" y="4060" />
    <button x="470" y="4120" />
    <button x="410" y="4180" />
    <button x="350" y="4240" />
    <button x="290" y="4300" />
    <button x="230" y="4360" />
    <button x="170" y="4420" />
    <button x="110" y="4480" />
    <button x="170" y="4540" />
    <button x="230" y="4600" />
    <button x="290" y="4660" />
    <button x="230" y="4720" />
    <button x="170" y="4780" />
    <button x="110" y="4840" />

    <button x="170" y="4900" />
    <button x="230" y="4960" />
    <button x="290" y="5020" />
    <button x="230" y="5080" />
    <button x="170" y="5140" />
    <button x="110" y="5200" />
    <button x="170" y="5260" />
    <button x="230" y="5320" />
    <button x="290" y="5380" />
    <button x="230" y="5440" />
    <button x="170" y="5500" />
    <button x="110" y="5560" />
    <button x="170" y="5620" />
    <button x="230" y="5680" />
    <button x="290" y="5740" />
    <button x="230" y="5800" />
    <button x="170" y="5860" />
    <button x="110" y="5920" />
    <button x="170" y="5980" />
    <button x="230" y="6040" />
    <button x="290" y="6100" />
    <button x="230" y="6160" />
    <button x="170" y="6220" />
    <button x="110" y="6280" />

    <button x="100" y="6500" />
    <button x="160" y="6560" />
    <button x="100" y="6620" />
    <button x="160" y="6680" />
    <button x="100" y="6740" />
    <button x="160" y="6800" />
    <button x="100" y="6860" />
    <button x="160" y="6920" />

    <button x="100" y="7380" />
    <button x="160" y="7440" />
    <button x="100" y="7500" />
    <button x="160" y="7560" />
    <button x="100" y="7620" />
    <button x="160" y="7680" />
    <button x="100" y="7740" />
    <button x="160" y="7800" />

    <button x="420" y="8380" />
    <button x="440" y="8440" />
    <button x="460" y="8500" />
    <button x="480" y="8560" />
    <button x="500" y="8620" />
    <button x="520" y="8680" />
    <button x="540" y="8740" />
    <button x="560" y="8800" />
    <button x="580" y="8860" />
    <button x="560" y="8920" />
    <button x="540" y="8980" />
    <button x="520" y="9040" />
    <button x="500" y="9100" />
    <button x="480" y="9160" />
    <button x="460" y="9220" />
    <button x="440" y="9280" />
    <button x="420" y="9340" />

    <button x="300" y="9900" />
    <button x="320" y="9960" />
    <button x="340" y="10020" />
    <button x="360" y="10080" />
    <button x="380" y="10140" />
    <button x="400" y="10200" />
    <button x="420" y="10260" />
    <button x="440" y="10320" />
    <button x="460" y="10380" />
    <button x="480" y="10440" />
    <button x="460" y="10500" />
    <button x="440" y="10560" />
    <button x="420" y="10620" />
    <button x="400" y="10680" />
    <button x="380" y="10740" />
    <button x="360" y="10800" />
    <button x="340" y="10860" />
    <button x="320" y="10920" />
    <button x="300" y="10980" />

    <button x="100" y="11380" />
    <button x="100" y="11440" />
    <button x="100" y="11500" />
    <button x="100" y="11560" />
    <button x="100" y="11620" />
    <button x="100" y="11680" />
    <button x="100" y="11740" />
    <button x="100" y="11800" />
    <button x="100" y="11380" />
    <button x="100" y="11440" />
    <button x="100" y="11500" />
    <button x="100" y="11560" />
    <button x="100" y="11620" />
    <button x="100" y="11680" />
    <button x="100" y="11740" />
    <button x="100" y="11800" />

    <button x="600" y="12380" />
    <button x="600" y="12440" />
    <button x="600" y="12500" />
    <button x="600" y="12560" />
    <button x="600" y="12620" />
    <button x="600" y="12680" />
    <button x="600" y="12740" />
    <button x="600" y="12800" />
    <button x="600" y="12380" />
    <button x="600" y="12440" />
    <button x="600" y="12500" />
    <button x="600" y="12560" />
    <button x="600" y="12620" />
    <button x="600" y="12680" />
    <button x="600" y="12740" />
    <button x="600" y="12800" />

    <button x="500" y="13380" />
    <button x="500" y="13440" />
    <button x="500" y="13500" />
    <button x="500" y="13560" />
    <button x="500" y="13620" />
    <button x="500" y="13680" />
    <button x="500" y="13740" />
    <button x="500" y="13800" />
    <button x="500" y="13380" />
    <button x="500" y="13440" />
    <button x="500" y="13500" />
    <button x="500" y="13560" />
    <button x="500" y="13620" />
    <button x="500" y="13680" />
    <button x="500" y="13740" />
    <button x="500" y="13800" />

    <button x="100" y="14500" />
    <button x="160" y="14560" />
    <button x="100" y="14620" />
    <button x="160" y="14680" />
    <button x="100" y="14740" />

    <button x="100" y="15780" />
    <button x="160" y="15840" />
    <button x="100" y="15900" />

    <button x="600" y="16780" />
    <button x="660" y="16840" />
    <button x="600" y="16900" />

    <button x="200" y="17500" />
    <button x="260" y="17560" />
    <button x="320" y="17620" />
    <button x="260" y="17680" />
    <button x="200" y="17740" />
    <button x="260" y="17800" />
    <button x="320" y="17860" />
    <button x="260" y="17920" />
    <button x="200" y="17980" />
    <button x="260" y="18040" />
    <button x="320" y="18100" />
    <button x="260" y="18160" />
    <button x="200" y="18220" />
    <button x="260" y="18280" />
    <button x="320" y="18340" />
    <button x="260" y="18400" />
    <button x="200" y="18460" />
    <button x="260" y="18520" />
    <button x="320" y="18580" />
    <button x="260" y="18640" />
    <button x="200" y="18700" />
    <button x="260" y="18760" />
    <button x="320" y="18820" />
    <button x="260" y="18880" />
    <button x="200" y="18940" />
    <button x="260" y="19000" />
    <button x="320" y="19060" />
    <button x="260" y="19120" />

    <button x="200" y="19460" />
    <button x="260" y="19520" />
    <button x="320" y="19580" />
    <button x="260" y="19640" />
    <button x="200" y="19700" />
    <button x="260" y="19760" />
    <button x="320" y="19820" />
    <button x="260" y="19880" />
    <button x="200" y="19940" />
    <button x="260" y="20000" />
    <button x="320" y="20060" />
    <button x="260" y="20120" />

    <button x="500" y="20460" />
    <button x="560" y="20520" />
    <button x="620" y="20580" />
    <button x="560" y="20640" />
    <button x="500" y="20700" />
    <button x="560" y="20760" />
    <button x="620" y="20820" />
    <button x="560" y="20880" />
    <button x="500" y="20940" />
    <button x="560" y="21000" />
    <button x="620" y="21060" />
    <button x="560" y="21120" />

    <button x="260" y="21640" />
    <button x="200" y="21700" />
    <button x="260" y="21760" />
    <button x="320" y="21820" />
    <button x="260" y="21880" />
    <button x="200" y="21940" />
    <button x="260" y="22000" />
    <button x="320" y="22060" />
    <button x="260" y="22120" />

    <button x="260" y="23640" />
    <button x="200" y="23700" />
    <button x="260" y="23760" />
    <button x="320" y="23820" />
    <button x="260" y="23880" />
    <button x="200" y="23940" />
    <button x="260" y="24000" />
    <button x="320" y="24060" />
    <button x="260" y="24120" />

    <button x="500" y="24460" />
    <button x="560" y="24520" />
    <button x="620" y="24580" />
    <button x="560" y="24640" />
    <button x="500" y="24700" />
    <button x="560" y="24760" />
    <button x="620" y="24820" />
    <button x="560" y="24880" />
    <button x="500" y="24940" />
    <button x="560" y="25000" />
    <button x="620" y="25060" />
    <button x="560" y="25120" />

    <button x="160" y="26300" />
    <button x="100" y="26360" />
    <button x="160" y="26420" />
    <button x="220" y="26480" />
    <button x="160" y="26540" />
    <button x="100" y="26600" />
    <button x="160" y="26660" />
    <button x="220" y="26720" />
    <button x="160" y="26780" />

    <button x="160" y="27300" />
    <button x="100" y="27360" />
    <button x="160" y="27420" />
    <button x="220" y="27480" />
    <button x="160" y="27540" />
    <button x="100" y="27600" />
    <button x="160" y="27660" />
    <button x="220" y="27720" />
    <button x="160" y="27780" />

    <button x="500" y="28460" />
    <button x="560" y="28520" />
    <button x="620" y="28580" />
    <button x="560" y="28640" />
    <button x="500" y="28700" />
    <button x="560" y="28760" />
    <button x="620" y="28820" />
    <button x="560" y="28880" />
    <button x="500" y="28940" />
    <button x="560" y="29000" />
    <button x="620" y="29060" />
    <button x="560" y="29120" />

    <button x="140" y="29600" />
    <button x="140" y="29660" />
    <button x="140" y="29720" />
    <button x="140" y="29780" />
    <button x="140" y="29840" />
    <button x="140" y="29900" />
    <button x="140" y="29960" />
    <button x="140" y="30020" />
    <button x="140" y="30080" />
    <button x="140" y="30140" />
    <button x="140" y="30200" />
    <button x="140" y="30260" />
    <button x="140" y="30320" />
    <button x="140" y="30380" />
    <button x="140" y="30440" />
    <button x="140" y="30500" />
    <button x="140" y="30560" />
    <button x="140" y="30620" />

    <button x="540" y="31600" />
    <button x="540" y="31660" />
    <button x="540" y="31720" />
    <button x="540" y="31780" />
    <button x="540" y="31840" />
    <button x="540" y="31900" />
    <button x="540" y="31960" />

    <button x="140" y="32600" />
    <button x="140" y="32660" />
    <button x="140" y="32720" />
    <button x="140" y="32780" />
    <button x="140" y="32840" />
    <button x="140" y="32900" />
    <button x="140" y="32960" />

    <button x="540" y="33600" />
    <button x="540" y="33660" />
    <button x="540" y="33720" />
    <button x="540" y="33780" />
    <button x="540" y="33840" />
    <button x="540" y="33900" />
    <button x="540" y="33960" />
  </buttons>

  <!--
  
  Powerup Categories:
  1 - Good
  0 - Bad
  
  Powerup Types:
  HEALTH = 0,
  HELMET = 1,
  PARACHUTE = 2,
  BUBBLE = 3,
  CAPE = 4,
  AXE = 5,
  BOOMERANG = 6,
  HAMMER = 7,
  KNIFE = 8,
  PLASMA_BALL = 9
  
  -->
  <powerups>
    <powerup category="1" type="0" x="360" y="13000" effect="4" lifespan="1"></powerup>
    <powerup category="1" type="6" x="480" y="16800" effect="20" lifespan="1"></powerup>
    <powerup category="1" type="7" x="440" y="21000" effect="30" lifespan="1"></powerup>
    <powerup category="1" type="3" x="360" y="22300" effect="9999" lifespan="7"></powerup>
    <powerup category="1" type="4" x="500" y="24300" effect="4" lifespan="1"></powerup>
    <powerup category="1" type="0" x="120" y="26900" effect="9999" lifespan="7"></powerup>
    <powerup category="1" type="8" x="120" y="32400" effect="40" lifespan="7"></powerup>
    <powerup category="1" type="0" x="360" y="40500" effect="999" lifespan="7"></powerup>
  </powerups>
</level>